package com.lengyu.vxminiprogram.schedules;

import com.alibaba.fastjson.JSONObject;
import com.lengyu.vxminiprogram.common.CommonUtils;
import com.lengyu.vxminiprogram.dto.SecretRealmDto;
import com.lengyu.vxminiprogram.service.ISecretRealmService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import java.util.stream.Stream;

@Component
public class InitFormSchedule {
    private final static Logger logger = LoggerFactory.getLogger(InitFormSchedule.class);

    @Autowired
    ISecretRealmService secretRealmService;


    /**
     * 每天凌晨12点5分开始初期化当天数据
     * @throws InterruptedException
     */
    @Scheduled(fixedDelay = 1000 * 60 * 60*6)
    public void  initFormEveryDay()  {
//        secretRealmService.transferDataLine("12/17/2024 21:43:57.9508  SPELL_AURA_APPLIED,Player-1933-05B837EC,\"求夏一可本子-安苏-TW\",0x512,0x0,Pet-0-3039-1822-7926-165189-0502499F2C,\"兔大臭\",0x1112,0x0,118455,\"野兽顺劈\",0x1,BUFF",null);
    }

}
